Error Check

Check for Errors in Advanced Ladder

There are three (3) possible sources of errors in a Ladder Program:

  • Syntax Errors - Caused by poor entry or misuse of program elements. Example: Creating a rung with only a single Input Contact (-| |- , -|/|-) on the rung.

  • Logical Errors - Caused by asking the controller to do something it can't or using the wrong information. Example: Triggering a timer from %I1 when the user have used %I2.

  • Physical Errors - Caused by misunderstanding or misuse of the hardware, especially the physical I/O points.

 

The Error Check tool can take care of the syntactical errors. A list of errors is displayed in the Error List dialog. One can go directly to the line causing the error by double-clicking on the error listing line.

Note: The program is automatically checked for syntax errors before downloading.

 

See also: Advanced Ladder Logic Programming

 

Check for Errors in IEC Programs

IEC Programs are automatically compiled for syntactical errors before they are downloaded to the controller. The Output window is displayed with the results of the compilation.

Manually check a program for errors by selecting Program > Error Check from the Home ribbon.

If there are no errors, then a No-Error Message box appears, along with details in the Output Window:

 

See Also: IEC 61131 Language Editor Programming